# 父类
class Person:
    name = 'Lucy'
    age = 20

    def sleep(self):
        print('1.sleep..')


class Student(Person):
    def study(self):
        print("study...")

    def sleep(self):
        print('2.sleep...')


class Teacher(Person):
    pass


stu = Student()
print(stu.name)
stu.study()
stu.sleep()
print('----------')
teacher = Teacher()
print(teacher.name)
teacher.sleep()
